package com.webside.front.common.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.front.common.mapper.BSeriesMapper;
import com.webside.front.common.model.BSeries;
import com.webside.front.common.service.BSeriesService;
@Service("bSeriesService")
public class BSeriesServiceImpl implements BSeriesService{
	@Autowired
	BSeriesMapper bSeriesMapper;
	
	public List<BSeries> selectBseriesByCondition(Map<String, Object> condition) {
		
		return bSeriesMapper.selectBSeriesByCondition(condition);
	}

	public List<BSeries> selectBseriesByPojo(BSeries bSeries) {
		
		return bSeriesMapper.selectBseriesByPojo(bSeries);
	}
	
	public int selectCountByPojo(BSeries bSeries) {
		
		return bSeriesMapper.getProductsCount(bSeries);
	}

	@Override
	public String selectAreaNameById(Integer id) {
		
		return bSeriesMapper.selectAreaNameById(id);
	}

	
}
